package cn.yh.shop.user.service.impl;

import java.util.HashMap;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import cn.yh.shop.user.dao.UserCommentDao;
import cn.yh.shop.user.model.UserComment;
import cn.yh.shop.user.service.IUserCommentService;
@Service
public class UserCommentServiceImpl implements IUserCommentService {

	@Autowired
	private UserCommentDao usercommentdao;

	@Override
	public List<UserComment> getAllComments(HashMap<String, Integer> map) {
		return usercommentdao.selectAllComments(map);
	}

	@Override
	public UserComment getUserComment(HashMap<String, String> map) {
		return usercommentdao.selectUserComment(map);
	}

	@Override
	public List<UserComment> getUserCommentByPage(HashMap<String, Integer> map) {
		return usercommentdao.selectUserCommentByPage(map);
	}

}
